package router

import (
	"api-gateway/basic/config"
	"api-gateway/handler/api"
	"api-gateway/midderware"
	"github.com/gin-gonic/gin"
)

func InAppInfo(v1 *gin.RouterGroup) {
	inAppInfo := v1.Group("/inAppInfo")
	{

		inAppInfo.POST("/addInfo", api.InfoAllSend)            // 添加站内信信息
		inAppInfo.GET("/inAppInfoList", api.InAppInfoList)     // 用户站内信信息列表
		inAppInfo.GET("/inAppInfoDetail", api.InAppInfoDetail) // 用户站内信信息详情
		inAppInfo.Use(midderware.JWTAuth(config.KEY_JWT))
		inAppInfo.GET("/inAppInfoWeb", api.Chat) // 聊天
	}
}
